package com.druid;

import com.alibaba.druid.pool.DruidDataSourceStatLogger;
import com.alibaba.druid.pool.DruidDataSourceStatLoggerAdapter;
import com.alibaba.druid.pool.DruidDataSourceStatValue;
import com.alibaba.druid.support.logging.Log;

import java.util.Properties;

/**
 * @Author : hebad90@163.com
 * @Date : 2014/9/19 16:30
 * @From : javalearn
 */
public class MyStatLogger extends DruidDataSourceStatLoggerAdapter implements DruidDataSourceStatLogger {
    public MyStatLogger() {
        super();
    }

    @Override
    public void log(DruidDataSourceStatValue statValue) {
        System.out.println("================"+ statValue.getSqlList());
    }

    @Override
    public void configFromProperties(Properties properties) {
        super.configFromProperties(properties);
    }

    @Override
    public void setLogger(Log logger) {
        super.setLogger(logger);
    }

    @Override
    public void setLoggerName(String loggerName) {
        super.setLoggerName(loggerName);
    }
}
